#typeToPhrase = (indexStart, length) => {
let str;
if (this.#config.displayType === this.#HEX) {
if (this.#charType === id.UINT8) {
return utils.hexLineBytes(this.#chars, indexStart, length);
}
if (this.#charType === id.UINT16) {
return utils.hexLineWords(this.#chars, indexStart, length);
}
if (this.#charType === id.UINT32) {
return utils.hexLineDWords(this.#chars, indexStart, length);
}
if (this.#charType === id.ARRAY) {
return utils.hexLineArray(this.#chars, indexStart, length);
}
throw new Error(``);
}
if (this.#config.displayType === this.#ASCII) {
return utils.arrayToAscii(this.#chars, indexStart, length);
}
if (this.#config.displayType === this.#UNICODE) {
return utils.arrayToUnicode(this.#chars, indexStart, length);
}
throw new Error(`${this.#FILENAME}typeToPhrase() bad type: ${this.#config.displayType}`);
};